﻿<script type="text/javascript" src="__PUBLIC__/admin/js/common-1.0.js"></script> 
<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('添加公告','__MODULE__/Setup/notiAddEdit','','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加公告</a>
  <span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="40">编号</th>
      <th width="80" id="no_cid" onClick="tab_sort(this)"><div class="">公告类型</div></th>
      <th width="300" id="no_title" onClick="tab_sort(this)"><div class="">公告标题</div></th>
      <th width="70" id="no_click" onClick="tab_sort(this)"><div class="">浏览量</div></th>
      <th width="70" id="lo_time" onClick="tab_sort(this)"><div class="">是否显示</div></th>
      <th width="120" id="lo_time" onClick="tab_sort(this)"><div class="">记录时间</div></th>
      <th width="60">操作</th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
  <tr class="text-c">
    <td>{$i}</td>
    <td>{$ntype[$vo[no_cid]]}</td>
    <td class="text-l"><a onclick="layer_show('修改公告','__MODULE__/Setup/notiAddEdit?id={$vo.no_id}','','')" href="javascript:;" title="查看">{$vo.no_title}</a></td>
    <td>{$vo.no_click}</td>
    <td><img width="20" src="__PUBLIC__/admin/images/<if condition='($vo[no_show] eq 1)'>y.png<else />n.png</if>" onclick="changeTableVal('notice','no_id={$vo.no_id}','no_show',this)"/></td>
    <td>{$vo.no_atime|date='Y-m-d H:i',###}</td>
    <td><a onclick="layer_show('修改公告','__MODULE__/Setup/notiAddEdit?id={$vo.no_id}','','')" href="javascript:;" title="修改">修改</a> |
      <a onClick="delOneData('notice','no_id={$vo.no_id}',this);" href="javascript:;" title="删除">删除</a>
    </td>
  </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
